#import "JourneyXenophileCell.h"


@implementation JourneyXenophileCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self pulseInitUIKitView];
	}
	return self;
}

- (void)setSereneKingdomPerceptive:(JourneyXenophileModel *)sereneKingdomPerceptive {
	_sereneKingdomPerceptive = sereneKingdomPerceptive;

	//: 配置cell的UI

	if (sereneKingdomPerceptive.wonder.count > 0) {
		[self.imaginationHeatwaveImageView sd_setImageWithURL:[NSURL URLWithString:sereneKingdomPerceptive.wonder[0]] placeholderImage:nil];
	}



}
//: 设置self.imaginationHeatwaveImageView的圆角
- (void)lushBreeze:(UIImageView *)conquerEcho balanceClarityQuaint:(CGFloat)heatwave {
	conquerEcho.layer.cornerRadius = heatwave;
	conquerEcho.layer.masksToBounds = YES;
}

- (UIView *)vividView {
	if (!_vividView) {
	
        _vividView = [[UIView alloc] initWithFrame:CGRectZero];
        _vividView.frame = CGRectMake(50, 17, 164, 106);
	}
	return _vividView;
}

- (UIView *)insectView {
	if (!_insectView) {
	
        _insectView = [[UIView alloc] initWithFrame:CGRectZero];
	}
	return _insectView;
}

//: tranquilXylophoneFusion 的点击事件
- (void)action_4 {}

//: 设置self.charismaPonderImageView的圆角
- (void)fusion:(UIImageView *)luminaryDiligentCactus xylophone:(CGFloat)lullabyLibertyMarvel {
	luminaryDiligentCactus.layer.cornerRadius = lullabyLibertyMarvel;
	luminaryDiligentCactus.layer.masksToBounds = YES;
}

- (void)pulseInitUIKitView {

    //: 描述_0
    self.imaginationHeatwaveImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
    self.imaginationHeatwaveImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.imaginationHeatwaveImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self lushBreeze:self.imaginationHeatwaveImageView balanceClarityQuaint:8];
    self.imaginationHeatwaveImageView.frame = CGRectMake(16, 34, 54, 64);
    UIImage *hopefulDusk = [UIImage imageNamed:@"images/image_0.png"];
    if (hopefulDusk) {
	    self.imaginationHeatwaveImageView.image = hopefulDusk;
    }
    [self.contentView addSubview:self.imaginationHeatwaveImageView];


    //: 描述_1
    UITextView *oasis = [[UITextView alloc] init];
    oasis.frame = CGRectMake(37, 20, 95, 128);
    self.doodleTextView = oasis;
    [self.contentView addSubview:oasis];

	//: 描述_2
	[self.contentView addSubview:self.vividView];

	//: 描述_3
	[self.contentView addSubview:self.insectView];
	[self.insectView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(49);
		make.height.mas_equalTo(103);
		make.bottom.equalTo(@(26));
	}];


    //: 描述_4
    UIButton *tranquilXylophoneFusion = [[UIButton alloc] init];
    tranquilXylophoneFusion.size = CGSizeMake(137, 173);
    tranquilXylophoneFusion.left = 49;
    tranquilXylophoneFusion.top = 18;
    UIImage *elevateForestNostalgia = [UIImage imageNamed:@"images/icon_4.png"];
    if (elevateForestNostalgia) {
	    [tranquilXylophoneFusion setImage:elevateForestNostalgia forState:UIControlStateNormal];
    }
    [tranquilXylophoneFusion setTitle:@"button_4" forState:UIControlStateNormal];
    [tranquilXylophoneFusion setTitle:@"button_selected_4" forState:UIControlStateSelected];
    [tranquilXylophoneFusion setTitleColor:[UIColor colorWithRed:203/255.0 green:77/255.0 blue:238/255.0 alpha:0.8] forState:UIControlStateNormal];
    [tranquilXylophoneFusion setTitleColor:[UIColor colorWithRed:108/255.0 green:124/255.0 blue:251/255.0 alpha:0.8] forState:UIControlStateSelected];
    [tranquilXylophoneFusion addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
    self.motionMergeWaffleButton = tranquilXylophoneFusion;
    [self.contentView addSubview:tranquilXylophoneFusion];


    //: 描述_5
    self.charismaPonderImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
    self.charismaPonderImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.charismaPonderImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self fusion:self.charismaPonderImageView xylophone:19];
    UIImage *forest = [UIImage imageNamed:@"images/image_5.png"];
    if (forest) {
	    self.charismaPonderImageView.image = forest;
    }
    [self.contentView addSubview:self.charismaPonderImageView];
	[self.charismaPonderImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(171);
		make.height.mas_equalTo(172);
		make.top.equalTo(@(26));
		make.bottom.equalTo(@(15));
	}];
}


@end